﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div id="noidung_trangchu">
    <asp:Panel ID="pnLoiChao" runat="server">
        <div id="loichao">
        <marquee behavior="scroll" direction="left" scrollamount="3" scrolldelay="0" onmouseover="this.stop()" onmouseout="this.start()" width="645px" style="float:left; padding-top:10px; margin-left:5px;" >
            <font color="#FF6633" size="+1"><b>CHÀO MỪNG BẠN ĐÃ TRUY CẬP VÀO WEBSITE</b></font>
        </marquee>
        <img src="images/icon_star.gif" style="float:right" width="60" height="33" />                
    </div>
    </asp:Panel>
    
    <div id="noibat">        
        <div id="khung">
            <asp:Panel ID="pnHienThi" runat="server">
                 <asp:DataList ID="dtlHienThi" runat="server">
                    <ItemTemplate><%# Eval("NoiDung") %></ItemTemplate>   
                </asp:DataList>
            </asp:Panel>            
          

            <asp:Panel ID="pnLienHe" runat="server">
                <br />
                <table cellpadding="2" style="font-size:14px">
                    <tr>
                        <td><span class="spanLienHe"> THÔNG TIN LIÊN HỆ</span></td>
                    </tr>
                    <tr>
                        <td>Tên bạn</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox runat="server" ID="txtTen" Width="300"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>Địa chỉ email:</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox runat="server" ID="txtEmail" Width="300"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>Tiêu đề thông điệp:</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox runat="server" ID="txtTieuDe" Width="300"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td>Nội dung thông điệp:</td>
                    </tr>
                    <tr>
                        <td><asp:TextBox runat="server" ID="txtNoiDung" TextMode="MultiLine" Height="200px" Width="400"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td><asp:CheckBox runat="server" ID="chkGuiLai" Text="Gởi một bản copy thông điệp này đến hộp email của bạn	" /></td>
                    </tr>
                    <tr>
                        <td><asp:Button runat="server" ID="btnGuiMail" Text="Gửi" 
                                CssClass="button medium green" onclick="btnGuiMail_Click" /></td>
                    </tr>
                    <tr>
                        <td><asp:Label runat="server" ID="lbThongBao"></asp:Label></td>
                    </tr>
                </table>
            </asp:Panel>

            <asp:Panel ID="pnTinTuc" runat="server" >
                                
                    <asp:DataList ID="dtlTinTuc" runat="server">
                        <ItemTemplate>
                            <table border="0" cellpadding="0" cellspacing="3" style="width:100%;">
                                <tr>
                                    <td colspan="2" class="news_name">
                                        <a href='ChiTietTinTuc.aspx?id=<%# Eval("IDTinTuc") %>&ten=<%# Eval("TenTat") %>'>
                                        <%# Eval("TieuDe") %></a></td>
                                </tr>
                                <tr>
                                    <td colspan="2" class="news_post">
                                        Ngày đăng:&nbsp; <%# Eval("NgayDang") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <a href='ChiTietTinTuc.aspx?id=<%# Eval("IDTinTuc") %>&ten=<%# Eval("TenTat") %>'>
                                            <img src='images/tintuc/<%# Eval("HinhAnh") %>' width="150" height="150" style="border:0" />
                                        </a>
                                    </td>
                                
                                     <td class="news_detail">
                                        <table style="height:100%">
                                            <tr>
                                                <td><%# Eval("GioiThieu") %></td>
                                            </tr>
                                            <tr>
                                                <td align="right"><a href='ChiTietTinTuc.aspx?id=<%# Eval("IDTinTuc") %>&ten=<%# Eval("TenTat") %>' class="button small green">Xem thêm</a></td>
                                            </tr>
                                        </table>

                                   
                                     </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <hr/>
                                    </td>                            
                                </tr>
                            </table>
                        </ItemTemplate>        
                    </asp:DataList>
                    <br />
                    <div id="divphantrang">
                         <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="" LabelText="" FirstText="Về đầu" 
                             NextText=""  ResultsFormat="" ControlCssClass="phantrang" LastText="" ></cc1:CollectionPager>
                    </div>

            </asp:Panel>
             <asp:Panel ID="pnTimKiem" runat="server">
                <table cellpadding="5" style="font-size:14px" cellspacing="5">
                    <tr>
                        <td><span class="spanLienHe">KẾT QUẢ TÌM KIẾM</span></td>
                    </tr>  
                    <tr>
                        <td><asp:Label runat="server" ID="lbKetQua"></asp:Label></td>
                    </tr>                 
                    <asp:DataList ID="dtlTimKiem" runat="server">
                        <ItemTemplate>
                        <tr>
                            <td class="kqtimkiem">
                                <img src="images/dialog_ok.png" width="20" height="20" />
                                <a href='ChiTiet.aspx?id=<%# Eval("IDDanhMucCon") %>&ten=<%# Eval("TenTat") %>'>
                                    <%# Eval("TenDanhMucCon") %>
                                </a>
                            </td>
                        </tr>
                        </ItemTemplate>
                    </asp:DataList>
                     
                </table>
            
            </asp:Panel>
        </div>
       
    </div>
</div>
</asp:Content>

